package me.ratel.demo.eBook.infrastructure.exceptions;

/**
 * @author: zhouyaming
 * @time: 2016/4/29 16:54
 */
public class BusinessException extends RuntimeException {
    private IError IError;

    public BusinessException(IError IError) {
        this.IError = IError;
    }

    public BusinessException(String message, IError IError) {
        super(message);
        this.IError = IError;
    }

    public BusinessException(String message, Throwable cause, IError IError) {
        super(message, cause);
        this.IError = IError;
    }

    public BusinessException(Throwable cause, IError IError) {
        super(cause);
        this.IError = IError;
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, IError IError) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.IError = IError;
    }

    public IError getIError() {
        return IError;
    }

    public void setIError(IError IError) {
        this.IError = IError;
    }
}
